#import "ZestQuirkCell.h"


@implementation ZestQuirkCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self echoesKeenConfigUI];
	}
	return self;
}

- (void)setSpiralCuriosity:(ZestQuirkModel *)spiralCuriosity {
	_spiralCuriosity = spiralCuriosity;

	//: 配置cell的UI

	[self.dreamerImageView sd_setImageWithURL:[NSURL URLWithString:spiralCuriosity.cableFlourishDreamer] placeholderImage:nil];

}
//: _laughAmazingFlutterBtn 的点击事件
- (void)action_0 {}

- (UIButton *)laughAmazingFlutterBtn {
	if (!_laughAmazingFlutterBtn) {
	
        _laughAmazingFlutterBtn = [[UIButton alloc] initWithFrame:CGRectZero];
        UIImage *tranquilVividHaze = [UIImage imageNamed:@"images/icon_0.png"];
        if (tranquilVividHaze) {
	        [_laughAmazingFlutterBtn setImage:tranquilVividHaze forState:UIControlStateNormal];
        }
        [_laughAmazingFlutterBtn setTitle:@"button_0" forState:UIControlStateNormal];
        [_laughAmazingFlutterBtn setTitle:@"button_selected_0" forState:UIControlStateSelected];
        [_laughAmazingFlutterBtn setTitleColor:[UIColor colorWithRed:91/255.0 green:180/255.0 blue:3/255.0 alpha:0.9] forState:UIControlStateNormal];
        [_laughAmazingFlutterBtn setTitleColor:[UIColor colorWithRed:5/255.0 green:128/255.0 blue:88/255.0 alpha:0.6] forState:UIControlStateSelected];
        [_laughAmazingFlutterBtn addTarget:self action:@selector(action_0) forControlEvents:UIControlEventTouchUpInside];
	}
	return _laughAmazingFlutterBtn;
}

//: self.waffleFlexibilityOpusButton 的点击事件
- (void)action_1 {}

- (UIView *)blossomView {
	if (!_blossomView) {
	
        _blossomView = [UIView new];
        _blossomView.size = CGSizeMake(139, 91);
        _blossomView.left = 16;
        _blossomView.top = 19;
	}
	return _blossomView;
}

//: self.onwardButton 的点击事件
- (void)action_5 {}

- (UIView *)elevateUnveilView {
	if (!_elevateUnveilView) {
	
        _elevateUnveilView = [UIView new];
        _elevateUnveilView.frame = CGRectMake(2, 49, 80, 34);
	}
	return _elevateUnveilView;
}

//: 设置_dreamerImageView的圆角
+ (void)yarnKinetic:(UIImageView *)melodicFlow laughterNirvana:(CGFloat)zipper {
	melodicFlow.layer.cornerRadius = zipper;
	melodicFlow.layer.masksToBounds = YES;
}

- (UIImageView *)dreamerImageView {
	if (!_dreamerImageView) {
	
        _dreamerImageView = [[UIImageView alloc] init];
        _dreamerImageView.contentMode = UIViewContentModeScaleAspectFill;
        _dreamerImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [ZestQuirkCell yarnKinetic:_dreamerImageView laughterNirvana:8];
        UIImage *yearlingHeatwaveTranquil = [UIImage imageNamed:@"images/image_8.png"];
        if (yearlingHeatwaveTranquil) {
	        _dreamerImageView.image = yearlingHeatwaveTranquil;
        }
	}
	return _dreamerImageView;
}

- (void)echoesKeenConfigUI {
	//: 描述_0
	[self.contentView addSubview:self.laughAmazingFlutterBtn];
	[self.laughAmazingFlutterBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(134);
		make.height.mas_equalTo(172);
	}];


    //: 描述_1
    self.waffleFlexibilityOpusButton = [UIButton new];
    self.waffleFlexibilityOpusButton.size = CGSizeMake(78, 189);
    self.waffleFlexibilityOpusButton.left = 29;
    self.waffleFlexibilityOpusButton.top = 25;
    UIImage *sereneGratitudeCharisma = [UIImage imageNamed:@"images/icon_1.png"];
    if (sereneGratitudeCharisma) {
	    [self.waffleFlexibilityOpusButton setImage:sereneGratitudeCharisma forState:UIControlStateNormal];
    }
    [self.waffleFlexibilityOpusButton setTitle:@"button_1" forState:UIControlStateNormal];
    [self.waffleFlexibilityOpusButton setTitle:@"button_selected_1" forState:UIControlStateSelected];
    [self.waffleFlexibilityOpusButton setTitleColor:[UIColor colorWithRed:84/255.0 green:214/255.0 blue:17/255.0 alpha:1.0] forState:UIControlStateNormal];
    [self.waffleFlexibilityOpusButton setTitleColor:[UIColor colorWithRed:249/255.0 green:117/255.0 blue:238/255.0 alpha:0.7] forState:UIControlStateSelected];
    [self.waffleFlexibilityOpusButton addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.waffleFlexibilityOpusButton];


    //: 描述_2
    UIView *undertow = [UIView new];
    self.kiteSolarMarvelView = undertow;
    [self.contentView addSubview:undertow];
	[self.kiteSolarMarvelView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(163);
		make.height.mas_equalTo(83);
		make.bottom.equalTo(@(28));
	}];


    //: 描述_3
    UITextField *xenon = [UITextField new];
    xenon.frame = CGRectMake(28, 47, 85, 158);
    self.luminescencePulseConquerTextField = xenon;
    [self.contentView addSubview:xenon];

	//: 描述_4
	[self.contentView addSubview:self.blossomView];


    //: 描述_5
    self.onwardButton = [UIButton new];
    UIImage *merge = [UIImage imageNamed:@"images/icon_5.png"];
    if (merge) {
	    [self.onwardButton setImage:merge forState:UIControlStateNormal];
    }
    [self.onwardButton setTitle:@"button_5" forState:UIControlStateNormal];
    [self.onwardButton setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [self.onwardButton setTitleColor:[UIColor colorWithRed:161/255.0 green:156/255.0 blue:59/255.0 alpha:0.8] forState:UIControlStateNormal];
    [self.onwardButton setTitleColor:[UIColor colorWithRed:133/255.0 green:55/255.0 blue:218/255.0 alpha:0.6] forState:UIControlStateSelected];
    [self.onwardButton addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.onwardButton];
	[self.onwardButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(103);
		make.height.mas_equalTo(159);
		make.top.equalTo(@(26));
		make.bottom.equalTo(@(21));
	}];


    //: 描述_6
    UITextView *glimpseEuphoriaLaugh = [UITextView new];
    self.zipperPeacefulPlumeTextView = glimpseEuphoriaLaugh;
    [self.contentView addSubview:glimpseEuphoriaLaugh];
	[self.zipperPeacefulPlumeTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(184);
		make.height.mas_equalTo(42);
		make.bottom.equalTo(@(26));
	}];

	//: 描述_7
	[self.contentView addSubview:self.elevateUnveilView];

	//: 描述_8
	[self.contentView addSubview:self.dreamerImageView];
	[self.dreamerImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(169);
		make.height.mas_equalTo(150);
		make.top.equalTo(@(28));
	}];


    //: 描述_9
    self.odysseyZebraMelodyTextField = [[UITextField alloc] init];
    [self.contentView addSubview:self.odysseyZebraMelodyTextField];
	[self.odysseyZebraMelodyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(68);
		make.height.mas_equalTo(43);
		make.top.equalTo(@(15));
	}];
}


@end